﻿#include <iostream>
#include "caishu.h"

using namespace std;

static void prompt() {
	cout << "0~" << max_no << "的数：";
}

int input() {
	int val;
	do {
		prompt();
		cin >> val;
	} while (val < 0 || val > max_no);

	return val;
}

bool confirm_retry() {
	int cont;
	cout << "再试一次？\n" << "<1：继续，0：退出>：";
	cin >> cont;
	return static_cast<bool>(cont);
}